package com.meowcook.service;

import com.meowcook.pojo.dto.CommentDTO;
import com.meowcook.pojo.dto.CommentListDTO;
import com.meowcook.pojo.vo.CommentVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-17
 * Time: 16:33
 */
public interface ICommentService {

    /**
     * 添加评论
     * @param commentDTO 评论信息
     */
    @Transactional
    void addComment(CommentDTO commentDTO);

    List<CommentVO> getCommentList(CommentListDTO commentListDTO);
}
